import {get, post, del, put} from "@/apis/http/request";
import {RetailWxGetMoney} from "@/apis/model/wxchat/RetailWxGetMoneyModel";

/**
* 得到列表
* @param params
*/
export const getRetailWxGetMoneyList = (params: any) => get("/retailWxGetMoney/list", params)

/**
* 得到分页列表
* @param params
*/
export const retailWxGetMoneyPage = (params: any) => post("/retailWxGetMoney/page", params)

/**
* 删除数据
* @param id
* @returns
*/
export const deleteRetailWxGetMoneyById = (id: number) => del("/retailWxGetMoney/delete/"+ id)

/**
* 新增数据
* @param param
*/
export const insertRetailWxGetMoney = (param: RetailWxGetMoney) => post("/retailWxGetMoney", param)

/**
 * 提现手续费设置
 * @param param
 */
export const insertRetailWxGetMoneyContent = (param: RetailWxGetMoney) => post("/retailWxGetMoney/insertRetailWxGetMoneyContent", param)

/**
* 更新数据
* @param param
*/
export const updateRetailWxGetMoney = (param: RetailWxGetMoney) => put("/retailWxGetMoney", param)

/**
 * 得到可用的分销比例
 */
export const getUseRetailWxGetMoney = () => get("/retailWxGetMoney/getUseRetailWxGetMoney")


